using System.Collections.ObjectModel;
using Caliburn.Micro;
using Torrenter.Common.Objects;
using Torrenter.Manager.Services;

namespace Torrenter.Client.Main.ViewModels
{
    public class ShowsViewModel : Screen
    {

        protected ObservableCollection<Show> _Shows;
        public ObservableCollection<Show> Shows
        {
            get { return _Shows; }
            set
            {
                _Shows = value;
                NotifyOfPropertyChange(() => Shows);
            }
        }


        public ShowsViewModel()
        {
            DisplayName = "this is shows";
        }

        protected override void OnActivate()
        {
            base.OnActivate();
            Shows = TorrentManager.Instance.Torrents.Shows;
        }

        public void RemoveShow(Show show)
        {
            TorrentManager.Instance.Torrents.RemoveShow(show);
        }

    }
}